﻿using famails.bus;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OnlineBusinesses.Info
{
    public partial class Success : System.Web.UI.Page
    {
        RegisterBUS dk;
        protected string packageFee;
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadData();
        }
        private void LoadData()
        {
            if (Request.QueryString["id"] != null)
            {
                int packageid = Convert.ToInt32(Request.QueryString["id"]);
                PackageBUS pBus = new PackageBUS();
                DataTable table= pBus.GetById(packageid);
                if(table!=null && table.Rows.Count>0)
                {
                    lblPackageName.Text = table.Rows[0]["packageName"].ToString();
                    divDungThiet.Visible = !Convert.ToBoolean(table.Rows[0]["istry"]);
                    divDungThu.Visible = !divDungThiet.Visible;
                }
            }
        }
    }
}